Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move make offset map to load stage #134

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

foxspy
Copy link
Collaborator

@foxspy foxspy commented Oct 8, 2023

issue: #132
Delete Making map at getVectors will cause unexpected error for existing ivf index, because these indexes have no direct_map in the binary set. So just move the making operation to load stage to support getVectors from existing indexes.

@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: foxspy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mergify
Copy link

mergify bot commented Oct 8, 2023

@foxspy 🔍 Important: PR Classification Needed!

For efficient project management and a seamless review process, it's essential to classify your PR correctly. Here's how:

  1. If you're fixing a bug, label it as kind/bug.
  2. For small tweaks (less than 20 lines without altering any functionality), please use kind/improvement.
  3. Significant changes that don't modify existing functionalities should be tagged as kind/enhancement.
  4. Adjusting APIs or changing functionality? Go with kind/feature.

For any PR outside the kind/improvement category, ensure you link to the associated issue using the format: “issue: #”.

Thanks for your efforts and contribution to the community!.

@foxspy
Copy link
Collaborator Author

foxspy commented Oct 8, 2023

/kind bug

@sre-ci-robot sre-ci-robot added the kind/bug This PR is a bug fix label Oct 8, 2023
@foxspy
Copy link
Collaborator Author

foxspy commented Oct 8, 2023

/run-e2e

@mergify mergify bot added the ci-passed label Oct 8, 2023
@@ -320,15 +319,13 @@ IvfIndexNode<T>::Train(const DataSet& dataset, const Config& cfg) {
index = std::make_unique<faiss::IndexIVFScalarQuantizer>(qzr, dim, nlist, faiss::QuantizerType::QT_8bit,
metric.value());
index->train(rows, (const float*)data);
index->make_direct_map(true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this for SQ and PQ

Copy link
Collaborator Author

@foxspy foxspy Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

limited the making operation by having raw data or not

Signed-off-by: xianliang <xianliang.li@zilliz.com>
@liliu-z
Copy link
Collaborator

liliu-z commented Oct 9, 2023

/lgtm

@sre-ci-robot sre-ci-robot merged commit 771e8f3 into zilliztech:main Oct 9, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants